/*     */ package com.cr.business.domain;
/*     */ 
/*     */ import com.cr.common.annotation.Excel;
/*     */ import com.cr.common.core.domain.BaseEntity;
/*     */ import org.apache.commons.lang3.builder.ToStringBuilder;
/*     */ import org.apache.commons.lang3.builder.ToStringStyle;

import java.text.SimpleDateFormat;
import java.util.Objects;

/*     */
/*     */ public class CrQuestion extends BaseEntity {
/*     */   private static final long serialVersionUID = 1L;
/*     */   private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
/*     */   private Long questionId;
/*     */   
/*     */   @Excel(name = "用户id")
/*     */   private Long userId;
/*     */   
/*     */   @Excel(name = "问题标题")
/*     */   private String title;
/*     */   
/*     */   @Excel(name = "问题详情")
/*     */   private String content;
/*     */   
/*     */   @Excel(name = "审核状态，0待审核，1已审核")
/*     */   private Integer examineStatus;
/*     */   
/*     */   @Excel(name = "屏蔽状态，0 未屏蔽，1已屏蔽")
/*     */   private Integer screenStatus;
/*     */   
/*     */   @Excel(name = "回复数量")
/*     */   private Long repliesNumber;
/*     */   
/*     */   @Excel(name = "阅读数量")
/*     */   private Long readNumber;
/*     */   
/*     */   public void setQuestionId(Long questionId) {
/*  51 */     this.questionId = questionId;
/*     */   }
/*     */   
/*     */   public Long getQuestionId() {
/*  56 */     return this.questionId;
/*     */   }
/*     */   
/*     */   public void setUserId(Long userId) {
/*  60 */     this.userId = userId;
/*     */   }
/*     */   
/*     */   public Long getUserId() {
/*  65 */     return this.userId;
/*     */   }
/*     */   
/*     */   public void setTitle(String title) {
/*  69 */     this.title = title;
/*     */   }
/*     */   
/*     */   public String getTitle() {
/*  74 */     return this.title;
/*     */   }
/*     */   
/*     */   public void setContent(String content) {
/*  78 */     this.content = content;
/*     */   }
/*     */   
/*     */   public String getContent() {
/*  83 */     return this.content;
/*     */   }
/*     */   
/*     */   public void setExamineStatus(Integer examineStatus) {
/*  87 */     this.examineStatus = examineStatus;
/*     */   }
/*     */   
/*     */   public Integer getExamineStatus() {
/*  92 */     return this.examineStatus;
/*     */   }
/*     */   
/*     */   public void setScreenStatus(Integer screenStatus) {
/*  96 */     this.screenStatus = screenStatus;
/*     */   }
/*     */   
/*     */   public Integer getScreenStatus() {
/* 101 */     return this.screenStatus;
/*     */   }
/*     */   
/*     */   public void setRepliesNumber(Long repliesNumber) {
/* 105 */     this.repliesNumber = repliesNumber;
/*     */   }
/*     */   
/*     */   public Long getRepliesNumber() {
/* 110 */     return this.repliesNumber;
/*     */   }
/*     */   
/*     */   public void setReadNumber(Long readNumber) {
/* 114 */     this.readNumber = readNumber;
/*     */   }
/*     */   
/*     */   public Long getReadNumber() {
/* 119 */     return this.readNumber;
/*     */   }
            public String getCreateTimeStr(){
                if(Objects.nonNull(this.getCreateTime())){
                    return sdf.format(this.getCreateTime());
                }
                return "";
            }
/*     */   
/*     */   public String toString() {
/* 124 */     return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 125 */       .append("questionId", getQuestionId())
/* 126 */       .append("userId", getUserId())
/* 127 */       .append("title", getTitle())
/* 128 */       .append("content", getContent())
/* 129 */       .append("examineStatus", getExamineStatus())
/* 130 */       .append("screenStatus", getScreenStatus())
/* 131 */       .append("repliesNumber", getRepliesNumber())
/* 132 */       .append("readNumber", getReadNumber())
/* 133 */       .append("createTime", getCreateTime())
/* 134 */       .append("createBy", getCreateBy())
/* 135 */       .append("updateTime", getUpdateTime())
/* 136 */       .append("updateBy", getUpdateBy())
.append("answerType", getAnswerType())
/* 137 */       .toString();
/*     */   }
            private Integer answerType;
            public Integer getAnswerType() {
                return answerType;
            }
            public void setAnswerType(Integer answerType) {
                this.answerType = answerType;
            } 
            private Long parentAnswerId;
            public void setParentAnswerId(Long parentAnswerId) {
              this.parentAnswerId = parentAnswerId;
            }
            public Long getParentAnswerId() {
              return this.parentAnswerId;
            }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-business-4.7.0.jar!\com\cr\business\domain\CrQuestion.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */